package com.chenxin.interact.domain.mesRequest;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class MesReturnReqDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    @JsonProperty("HEAD")
    private Head HEAD;       // 主
    @JsonProperty("DETAILS")
    private List<DETAIL> DETAILS;   // 明细

    public static class Head {
        @JsonProperty("RETURN_NO")
        private String returnNo;//退料单号
        @JsonProperty("ORDER_TYPE")
        private String orderType;//退料类型
        @JsonProperty("SEND_WAREHOUSE")
        private String sendWarehouse;//退料仓库
        @JsonProperty("ENTERPRISE_NAME")
        private String enterpriseName;//退料部门
        @JsonProperty("CREATE_BY")
        private String createBy;//创建人
        @JsonProperty("CREATE_DATE")
        private String createDate;//创建时间

        public String getReturnNo() {
            return returnNo;
        }

        public String getOrderType() {
            return orderType;
        }

        public String getSendWarehouse() {
            return sendWarehouse;
        }

        public String getEnterpriseName() {
            return enterpriseName;
        }

        public String getCreateBy() {
            return createBy;
        }

        public String getCreateDate() {
            return createDate;
        }
    }


    public static class DETAIL {
        @JsonProperty("LINE")
        private Long line;//行号
        @JsonProperty("ITEM_CODE")
        private String itemCode;//物料编码
        @JsonProperty("QTY")
        private BigDecimal qty;//数
        @JsonProperty("REEL_ID")
        private String reelId;//标签号
        @JsonProperty("WORK_ORDER_NO")
        private String workOrderNo;//工单号

        public Long getLine() {
            return line;
        }

        public String getItemCode() {
            return itemCode;
        }

        public BigDecimal getQty() {
            return qty;
        }

        public String getReelId() {
            return reelId;
        }

        public String getWorkOrderNo() {
            return workOrderNo;
        }
    }
}
